<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>Clash | HMuSeaB の 小站</title><meta name="author" content="HMuSeaB"><meta name="copyright" content="HMuSeaB"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="1. 简介Clash 是一个使用 Go 语言编写，基于规则的跨平台代理软件核心程序。Clash for Windows 是目前在 Windows 上唯一可用的图形化 Clash 分支。通过 Clash API 来配置和控制 Clash 核心程序，便于用户可视化操作和使用。支持的协议： Vmess, Shadowsocks, Snell , SOCKS5 , ShadowsocksR（在0.11.2">
<meta property="og:type" content="article">
<meta property="og:title" content="Clash">
<meta property="og:url" content="https://hmuseab.github.io/2023/04/29/clash/index.html">
<meta property="og:site_name" content="HMuSeaB の 小站">
<meta property="og:description" content="1. 简介Clash 是一个使用 Go 语言编写，基于规则的跨平台代理软件核心程序。Clash for Windows 是目前在 Windows 上唯一可用的图形化 Clash 分支。通过 Clash API 来配置和控制 Clash 核心程序，便于用户可视化操作和使用。支持的协议： Vmess, Shadowsocks, Snell , SOCKS5 , ShadowsocksR（在0.11.2">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg">
<meta property="article:published_time" content="2023-04-29T03:55:00.000Z">
<meta property="article:modified_time" content="2024-05-18T11:50:22.681Z">
<meta property="article:author" content="HMuSeaB">
<meta property="article:tag" content="知识">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://hmuseab.github.io/2023/04/29/clash/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css?v=4.13.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0.33/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"找不到您查询的内容：${query}","hits_stats":"共找到 ${hits} 篇文章"}},
  translate: undefined,
  noticeOutdate: {"limitDay":500,"position":"top","messagePrev":"It has been","messageNext":"days since the last update, the content of the article may be outdated."},
  highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid@4.11.1/dist/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Clash',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2024-05-18 19:50:22'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><link rel="stylesheet" href="/css/style.css"><meta name="generator" content="Hexo 7.2.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://i0.hippopx.com/photos/121/457/241/girls-the-scenery-wallpaper-7f97112750013868bc5bcc249f13e27d.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">14</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">6</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> List</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> Movie</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg')"><nav id="nav"><span id="blog-info"><a href="/" title="HMuSeaB の 小站"><span class="site-name">HMuSeaB の 小站</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> List</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> Movie</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Clash</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-04-29T03:55:00.000Z" title="发表于 2023-04-29 11:55:00">2023-04-29</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-05-18T11:50:22.681Z" title="更新于 2024-05-18 19:50:22">2024-05-18</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">3.6k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>12分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Clash"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h2 id="1-简介"><a href="#1-简介" class="headerlink" title="1. 简介"></a>1. 简介</h2><p>Clash 是一个使用 Go 语言编写，基于规则的跨平台代理软件核心程序。<br>Clash for Windows 是目前在 Windows 上唯一可用的图形化 Clash 分支。通过 Clash API 来配置和控制 Clash 核心程序，便于用户可视化操作和使用。<br><strong>支持的协议：</strong> Vmess, Shadowsocks, Snell , SOCKS5 , ShadowsocksR（在0.11.2版本加入）<br>【注】：ClashR for Windows 是第三方修改版本，已汉化。支持SSR协议，使用方法与原版相同。下载地址请看第3节。<br>ClashR(for Windows)（Whojave）项目地址：<a target="_blank" rel="noopener" href="https://github.com/WhoJave/clash/releases">https://github.com/WhoJave/clash/releases</a></p>
<h2 id="2-整理教程时的系统环境"><a href="#2-整理教程时的系统环境" class="headerlink" title="2. 整理教程时的系统环境"></a>2. 整理教程时的系统环境</h2><p>Windows 10 1903<br>Clash for Windows 0.8.0</p>
<p>此教程针对手持 Clash 订阅链接的用户，</p>
<p>V2ray订阅链接需先转换成Clash 订阅链接才能使用。查看 <a target="_blank" rel="noopener" href="https://www.v2rayfree.eu.org/post/v2ray-to-clash/">订阅链接转换</a>教程。</p>
<p>没有V2ray订阅链接？请移步 👉 <a target="_blank" rel="noopener" href="https://www.v2rayfree.eu.org/post/free-v2ray/">https://www.v2rayfree.eu.org/post/free-v2ray/</a> 免费获取。</p>
<h2 id="3-下载和安装-Clash-for-Windows"><a href="#3-下载和安装-Clash-for-Windows" class="headerlink" title="3. 下载和安装 Clash for Windows"></a>3. 下载和安装 Clash for Windows</h2><p>原版CFW的Github发布地址：<a target="_blank" rel="noopener" href="https://github.com/Fndroid/clash_for_windows_pkg/releases">https://github.com/Fndroid/clash_for_windows_pkg/releases</a></p>
<p>由于 Clash for Windows 没有任何有效的数字签名，因此 SmartScreen 可能会弹出提示，请点击「更多信息」，然后选择「仍要运行」。</p>
<h2 id="4-如何汉化-Clash-for-Windows？"><a href="#4-如何汉化-Clash-for-Windows？" class="headerlink" title="4. 如何汉化 Clash for Windows？"></a>4. 如何汉化 Clash for Windows？</h2><p>汉化版CFW的Github发布地址：<a target="_blank" rel="noopener" href="https://github.com/ender-zhao/Clash-for-Windows_Chinese">https://github.com/ender-zhao/Clash-for-Windows_Chinese</a></p>
<p>对于部分新用户来说，纯英文的界面确实有一些不太友好，但是我们可以通过很简单的操作来自行汉化Clash for Windows。以下操作需要在Clash未在运行的前提下进行：</p>
<p>如果是安装版的Clash，那么可以对着桌面图标单击右键，选择<code>打开文件所在位置</code>，即可找到clash主程序所在的<code>Clash for Windows</code>文件夹。然后双击进入<code>resources</code>文件夹，找到<code>app.asar</code>这个文件。</p>
<p>将Clash for Windows汉化文件，替换掉原来的<code>app.asar</code>文件。</p>
<h2 id="5-快速配置-Clash-for-Windows"><a href="#5-快速配置-Clash-for-Windows" class="headerlink" title="5. 快速配置 Clash for Windows"></a>5. 快速配置 Clash for Windows</h2><p>打开 Clash for Windows 应用程序，在左侧的标签页中选择「Profiles」， 在顶部输入您的 <code>Clash 订阅链接</code> ，然后点击「Download」按钮。</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash\2110331695.png"><img src="https://images-abx.vercel.app/2022/04/07/17d78462587a54d5e9d991628614be96-0652df.png" alt="1-订阅.png"></a></p>
<p>Clash for Windows 会自动拉取配置文件进行更新，如果一切顺利，你应当可以看到绿色提示信息「Success!」，并且可以看到一个新增的配置文件：</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash\1262785329.png"><img src="https://images-abx.vercel.app/2022/04/07/844624698cb188e4e67e7602e941deb7-385e71.png" alt="2-订阅成功.png"></a></p>
<p>点击新增的配置文件来切换到该配置，然后点击「Proxies」标签页来切换接入点，将顶部的出站模式选择为「Rule」。<br>此模式下你的网络访问请求将通过 Clash for Winows 进行<strong>分流处理</strong>。</p>
<p>展开此折叠框以了解“分流”</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash\3643147102.png"><img src="https://images-abx.vercel.app/2022/04/07/c1c82a36141d4961b937e72a3f676e62-c76ea4.png" alt="3-选择模式.png"></a></p>
<p>在「Proxy」策略组中选择所想要使用的接入点。Proxy 策略组是用于访问国际网络的默认策略，在不进行其他修改的情况下，所有国际网络的访问都通过 Proxy 策略组中选择的接入点进行。</p>
<p>图中所示的其它策略组为本人出于自身实际需求自行配置的，请以自己的实际配置为准。</p>
<h2 id="6-启动-Clash-for-Windows"><a href="#6-启动-Clash-for-Windows" class="headerlink" title="6. 启动 Clash for Windows"></a>6. 启动 Clash for Windows</h2><p>请务必确保开关是启用状态。<br>经博客聊天窗口统计，大量新手用户因未打开开关，导致连不上代理。</p>
<p>返回到「General」部分，将「System Proxy」的开关更改为<strong>绿色</strong>状态即可开始使用。此外，建议将「Start with Windows」也更改为<strong>绿色</strong>来让 Clash for Windows 在开机时自动启动。</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash\1116731389.png"><img src="https://images-abx.vercel.app/2022/04/07/a1201f520557417f10eaa429f58fe2ee-d13b96.png" alt="4-打开代理.png"></a></p>
<hr>
<h4 id="本地拖拽YAML文件"><a href="#本地拖拽YAML文件" class="headerlink" title="本地拖拽YAML文件"></a>本地拖拽YAML文件</h4><p>在无法直接从软件里更新自己的订阅时，可以复制你的链接，直接粘贴到浏览器打开，然后复制全部的文本，在桌面新建一个文本文档（TXT格式），然后粘贴到文档里，保存后将文件的扩展名更改为 YAML 。然后直接拖拽到软件的 Proflies 界面。</p>
<p>这是一种曲线救国的方法。此方法导入的配置无法进行更新，需要更新时请重新来一遍。</p>
<p>简单的使用教程到这里就结束了 ，当前已经可以进行正常的科学上网。<br>有兴趣的话可以接着了解下边的内容。</p>
<hr>
<p>请注意<br>当配置文件存在错误时，无法在「Profiles」界面切换，请根据提示进行修改<br>若出现如图所示的情况，说明您未点击刚才新增的配置文件，请返回「Profiles」点击选择对应的配置文件。</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash/571262170.png"><img src="https://images-abx.vercel.app/2022/04/07/2c4427af7cbfea6cfacf931113e4e413-49c4aa.png" alt="9-配置错误示例.png"></a></p>
<h2 id="7-其它知识"><a href="#7-其它知识" class="headerlink" title="7. 其它知识"></a>7. 其它知识</h2><h3 id="7-1-Clash-for-Windows-界面简介"><a href="#7-1-Clash-for-Windows-界面简介" class="headerlink" title="7.1 Clash for Windows 界面简介"></a>7.1 Clash for Windows 界面简介</h3><p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash\884528405.png"><img src="https://images-abx.vercel.app/2022/04/07/71aae3627a227210b26de37c57a4a6a3-1719cd.png" alt="8-界面简介.png"></a></p>
<ul>
<li><pre><code>General（常规）
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">  ：</span><br><span class="line"></span><br><span class="line">  - `Port`、`Socks Port`；分别为 HTTP、SOCKS 代理端口，点击终端图案可以打开一个配置了代理的命令行窗口，点击端口数字可以复制该命令；</span><br><span class="line">  - `Allow LAN`：启用局域网共享代理功能；‘</span><br><span class="line">  - `Log Level`：日志等级；</span><br><span class="line">  - `Home Directory`：点击下方路径直达 `C:\Users\用户名\.config\clash` 文件夹；</span><br><span class="line">  - `GeoIP Database`：点击下方日期可更新 GeoIP 数据库；</span><br><span class="line">  - `UWP Loopback` ：可以用来使 UWP 应用解除回环代理限制；</span><br><span class="line">  - `Tap Device` ：安装 cfw-tap 网卡，可用于处理不遵循系统代理的软件（实际启动 tap 模式需要更改配置文件）；</span><br><span class="line">  - `General YML`：编辑 `config.yml` 文件，可用于配置部分 **General** 页面内容；</span><br><span class="line">  - `Dark Theme`：控制暗色模式；</span><br><span class="line">  - `System Proxy`：启用系统代理；</span><br><span class="line">  - `Start with Windows`：设置开机自启；</span><br><span class="line"></span><br><span class="line">- `Proxies（代理）`：选择代理方式（Global - 全局、Rule - 规则、Direct - 直连）及策略组节点选择；</span><br><span class="line"></span><br><span class="line">- ```</span><br><span class="line">  Profiles（配置管理）</span><br></pre></td></tr></table></figure>

：

- 用来下载远端配置文件和创建本地副本，且可在多个配置文件间切换；
- 对配置进行节点、策略组和规则的管理（添加节点、策略组和规则在各自编辑界面选择 `Add`, 调整策略组顺序、节点顺序及策略组节点使用拖拽的方式）；
</code></pre>
</li>
<li><p><code>Logs（日志）</code>：显示当前请求命中规则类型和策略；</p>
</li>
<li><p><code>Connections (连接)</code>: 显示当前的 TCP 连接，可对某个具体连接执行关闭操作；</p>
</li>
<li><p><code>Feedback（反馈）</code>：显示软件、作者相关信息，内含捐赠码，欢迎打赏 <a target="_blank" rel="noopener" href="https://github.com/Fndroid">Fndroid</a> 大佬以感谢和支持开发。</p>
</li>
</ul>
<h3 id="7-2-UWP-应用"><a href="#7-2-UWP-应用" class="headerlink" title="7.2 UWP 应用"></a>7.2 UWP 应用</h3><p>如需使用 UWP 应用，还需要点击「EnableLoopback」来为 UWP 应用启用本地回环代理。在 Windows 10 中，微软出于安全性考虑，不允许 UWP 应用访问本地回环地址，这导致 UWP 应用无法直接使用代理，需要其他工具来破除这一限制。</p>
<p>Clash for Windows 集成了 EnableLoopback 程序，只需要点击「UWP Loopback」就可以使用。</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash/1411832154.png"><img src="https://images-abx.vercel.app/2022/04/07/4275f07728d218798b3a8e75dc3198a6-dae985.png" alt="5-UWP应用.png"></a></p>
<p>打开后一般直接点击 Exempt All 勾选所有 UWP 应用，然后点击 Save Changes 即可。请注意安装新的 UWP 应用后需要重新设置。</p>
<h3 id="7-3-更新-GeoIP-数据库"><a href="#7-3-更新-GeoIP-数据库" class="headerlink" title="7.3 更新 GeoIP 数据库"></a>7.3 更新 GeoIP 数据库</h3><p>在「General」界面点击「GeoIP Database」来更新 MaxMind 的 GeoIP2 Lite 数据库。此数据库用于 Geo 规则和 DNS 判断，在更新软件时，GeoIP 库会同步更新，一般不需要频繁刷新。</p>
<p><a href="file:///D:/\Users\liubo\Documents\md\images\Clash/3353354913.png"><img src="https://images-abx.vercel.app/2022/04/07/dbc4402eb5faece296596c44bdf23af8-257d2d.png" alt="7-更新IP库.png"></a></p>
<h3 id="7-4-TAP-设备"><a href="#7-4-TAP-设备" class="headerlink" title="7.4 TAP 设备"></a>7.4 TAP 设备</h3><h4 id="7-4-1-介绍"><a href="#7-4-1-介绍" class="headerlink" title="7.4.1 介绍"></a>7.4.1 介绍</h4><p>Clash for Windows 中提供了一个新的 TAP 模式。对于不遵循系统代理的软件，TAP 模式可以接管其流量并交由 CFW 处理。</p>
<h4 id="7-4-2-CFW0-9-0及以后版本"><a href="#7-4-2-CFW0-9-0及以后版本" class="headerlink" title="7.4.2 CFW0.9.0及以后版本"></a>7.4.2 CFW0.9.0及以后版本</h4><h5 id="安装TAP网卡"><a href="#安装TAP网卡" class="headerlink" title="安装TAP网卡"></a>安装TAP网卡</h5><p>点击 <code>General</code>页面下的 <code>TAP Device</code>以安装 TAP 网卡，此网卡将用于接管系统流量，安装完成可在系统网络连接中看到一张新的虚拟网卡 <code>cfw-tap</code>。</p>
<h5 id="启动TAP模式"><a href="#启动TAP模式" class="headerlink" title="启动TAP模式"></a>启动TAP模式</h5><p>在配置文件中，添加以下字段(包含fake-ip)：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">dns:</span></span><br><span class="line">   <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">   <span class="attr">enhanced-mode:</span> <span class="string">fake-ip</span> <span class="comment"># 或 redir-host</span></span><br><span class="line">   <span class="attr">listen:</span> <span class="number">127.0</span><span class="number">.0</span><span class="number">.1</span><span class="string">:53</span></span><br><span class="line">   <span class="attr">nameserver:</span></span><br><span class="line">      <span class="bullet">-</span> <span class="number">223.5</span><span class="number">.5</span><span class="number">.5</span></span><br><span class="line"><span class="attr">experimental:</span></span><br><span class="line">  <span class="attr">interface-name:</span> <span class="string">WLAN</span> <span class="comment"># WLAN 为物理网卡名</span></span><br></pre></td></tr></table></figure>

<h5 id="工作原理"><a href="#工作原理" class="headerlink" title="工作原理"></a>工作原理</h5><p>此版本可以使用interface-name属性避免回环，所以可以不使用fake-ip模式，并且支持了UDP及IP类请求</p>
<h4 id="7-4-3-CFW0-8-11及以前版本"><a href="#7-4-3-CFW0-8-11及以前版本" class="headerlink" title="7.4.3 CFW0.8.11及以前版本"></a>7.4.3 CFW0.8.11及以前版本</h4><h5 id="安装TAP网卡-1"><a href="#安装TAP网卡-1" class="headerlink" title="安装TAP网卡"></a>安装TAP网卡</h5><p>点击 <code>General</code>页面下的 <code>TAP Device</code>以安装 TAP 网卡，此网卡将用于接管系统流量，安装完成可在系统网络连接中看到一张新的虚拟网卡 <code>cfw-tap</code>。</p>
<h5 id="启动TAP模式-1"><a href="#启动TAP模式-1" class="headerlink" title="启动TAP模式"></a>启动TAP模式</h5><p>在配置文件中，添加以下字段(包含fake-ip)：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">dns:</span></span><br><span class="line">   <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">   <span class="attr">enhanced-mode:</span> <span class="string">fake-ip</span></span><br><span class="line">   <span class="attr">listen:</span> <span class="number">127.0</span><span class="number">.0</span><span class="number">.1</span><span class="string">:53</span></span><br><span class="line">   <span class="attr">nameserver:</span></span><br><span class="line">      <span class="bullet">-</span> <span class="number">223.5</span><span class="number">.5</span><span class="number">.5</span></span><br></pre></td></tr></table></figure>

<h5 id="工作原理-1"><a href="#工作原理-1" class="headerlink" title="工作原理"></a>工作原理</h5><p>为避免循环，Clash for Windows 只会将Fake IP段的请求发往TAP，所以必须要在配置文件中指定 <code>enhanced-mode: fake-ip</code>。<br>Clash for Windows 会将系统 DNS 修改为 Clash 本地 DNS 服务器，获取到 Fake IP 的请求再发送至 TAP 网卡，这样设置可以让大部分软件能够正常工作，但如果请求直接使用IP地址而非域名，则不会被发往 TAP ，例如 Telegram 。</p>
<h4 id="7-4-4-CFW0-9-6版本"><a href="#7-4-4-CFW0-9-6版本" class="headerlink" title="7.4.4 CFW0.9.6版本"></a>7.4.4 CFW0.9.6版本</h4><p>此版本调整了TAP逻辑，DNS在此版本要求监听在0.0.0.0:53<br>同时，此版本已经将TAP安装DNS改为10.0.0.1了，Office不能联网的问题可以参考这个修改配置文件解决：<br><a target="_blank" rel="noopener" href="https://github.com/Fndroid/clash_for_windows_pkg/issues/466#issuecomment-614716133">https://github.com/Fndroid/clash_for_windows_pkg/issues/466#issuecomment-614716133</a></p>
<h3 id="7-5-URL-Scheme"><a href="#7-5-URL-Scheme" class="headerlink" title="7.5 URL Scheme"></a>7.5 URL Scheme</h3><p>CFW支持使用URL Scheme快速导入配置文件：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">clash://install-config?url=&lt;encoded</span> <span class="string">URI&gt;</span></span><br></pre></td></tr></table></figure>

<h3 id="7-6-便携模式"><a href="#7-6-便携模式" class="headerlink" title="7.6 便携模式"></a>7.6 便携模式</h3><p><strong>版本要求：</strong><br>从0.4.0开始，Clash for Windows提供简单的便携支持</p>
<p><strong>使用方法：</strong><br>进入Release页面下载最新后缀为 <code>.zip或.7z</code>的免安装包并解压至希望安装的目录下（如移动硬盘、U盘等）</p>
<p><strong>配置文件：</strong><br>进入 <code>安装目录/resources/static/files/</code>目录中进行如下操作：</p>
<ol>
<li>新建config.yml（文件可以为空，但一定要创建）</li>
<li>重新启动Clash for Windows<br>此时文件夹目录中还有其他文件及文件夹，请勿对其修改</li>
</ol>
<p><strong>启动及更新：</strong><br>安装目录下Clash for Windows.exe即为软件入口，点击启动即可<br>如需更新Clash for Windows，只需下载对应zip安装包，解压并覆盖至软件目录即可</p>
<h2 id="8-常见问题"><a href="#8-常见问题" class="headerlink" title="8. 常见问题"></a>8. 常见问题</h2><h3 id="8-1-界面显示不全，无法操作"><a href="#8-1-界面显示不全，无法操作" class="headerlink" title="8.1 界面显示不全，无法操作"></a>8.1 界面显示不全，无法操作</h3><p>删除 Home Directory 下 config.yml 文件并重启软件 如错误依旧，打开 logs 文件夹，选取最新日志文件分析</p>
<h3 id="8-2-升级后提示-xxx-not-found"><a href="#8-2-升级后提示-xxx-not-found" class="headerlink" title="8.2 升级后提示 xxx not found"></a>8.2 升级后提示 xxx not found</h3><p>0.6.0 版本升级后，Clash 核心增加对规则部分的校验，如果策略不存在，则不再忽略而提示错误，根据错误信息检查配置文件并进行排除即可</p>
<h3 id="8-3-系统代理自动关闭或打开"><a href="#8-3-系统代理自动关闭或打开" class="headerlink" title="8.3 系统代理自动关闭或打开"></a>8.3 系统代理自动关闭或打开</h3><p>清除系统代理设置 如无法解决，则检查是否有其他安全&#x2F;代理软件修改代理设置</p>
<p><strong>如果装有QQ输入法或者QQ音乐等腾讯系软件，建议卸载或者禁止开机自动启动，此类毒瘤软件会更改系统代理设置。</strong><br><strong>浏览器里有代理类插件的话（包括Switch Omgega、各种VPN、集装箱等），请尝试删除代理插件，然后重启电脑。</strong></p>
<p>详见：<a target="_blank" rel="noopener" href="https://github.com/Fndroid/clash_for_windows_pkg/issues/312">https://github.com/Fndroid/clash_for_windows_pkg/issues/312</a></p>
<h3 id="8-4-无法访问网页"><a href="#8-4-无法访问网页" class="headerlink" title="8.4 无法访问网页"></a>8.4 无法访问网页</h3><p>0.6.0 版本升级后，Clash 核心使用自定义 DNS 设置进行服务器及直连域名的解析，所以当日志中出现大量 All DNS Failed! 日志时，请重新设置合适的 DNS</p>
<p>如果不使用 TAP ，建议将 DNS 关闭</p>
<h3 id="8-5-TAP-无法安装"><a href="#8-5-TAP-无法安装" class="headerlink" title="8.5 TAP 无法安装"></a>8.5 TAP 无法安装</h3><p>检查是否已经安装其他 TAP 设备，若是，可以先在设备管理器中将其删除后重试</p>
<h3 id="8-6-安装0-7-4-之后版本首次使用时不显示接入点"><a href="#8-6-安装0-7-4-之后版本首次使用时不显示接入点" class="headerlink" title="8.6 安装0.7.4 之后版本首次使用时不显示接入点"></a>8.6 安装0.7.4 之后版本首次使用时不显示接入点</h3><p>新版 Clash for Windows 在下载配置文件后并不会默认切换到新的配置文件（与旧版本不同），否则仍然使用的是默认配置文件。</p>
<h3 id="8-7-替换配置文件后不显示接入点"><a href="#8-7-替换配置文件后不显示接入点" class="headerlink" title="8.7 替换配置文件后不显示接入点"></a>8.7 替换配置文件后不显示接入点</h3><p>这可能是因为 <code>Clash for Windows</code> 的基础配置文件 <code>config.yml</code> 被修改。要解决此问题，点击 <code>Clash for Windows General</code> 标签页上的 <code>Home Directory</code> 进入 <code>Clash for Windows</code> 配置目录，然后删除 <code>config.yml</code> 文件（不是 <code>config.yaml</code>），退出并重启打开 <code>Clash for Windows</code>，重新进行配置步骤。</p>
<h3 id="8-8-系统代理异常关闭"><a href="#8-8-系统代理异常关闭" class="headerlink" title="8.8 系统代理异常关闭"></a>8.8 系统代理异常关闭</h3><p><strong>解决办法：</strong></p>
<p>① 打开注册表编辑器（可以自行百度如何打开）</p>
<p>② 进入HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsConnections</p>
<p>③ 选择文件 - 导出，输入文件名备份当前分支</p>
<p>④ 删除所有条目</p>
<p>⑤ 重新开关System Proxy</p>
<p>⑥ 刷新注册表编辑器，查看条目是否重新出现，若否，选择文件 - 导入恢复设置</p>
<p><strong>如果装有QQ输入法或者QQ音乐等腾讯系软件，建议卸载或者禁止开机自动启动，此类毒瘤软件会更改系统代理设置。</strong><br><strong>浏览器里有代理类插件的话（包括Switch Omgega、各种VPN、集装箱等），请尝试删除代理插件，然后重启电脑。</strong></p>
<p>详见：<a target="_blank" rel="noopener" href="https://github.com/Fndroid/clash_for_windows_pkg/issues/312">https://github.com/Fndroid/clash_for_windows_pkg/issues/312</a></p>
<h3 id="8-9-TAP无法正常工作"><a href="#8-9-TAP无法正常工作" class="headerlink" title="8.9 TAP无法正常工作"></a>8.9 TAP无法正常工作</h3><p>首先，重新启动CFW，且勿使用管理员权限启动。<br>然后重新在 <code>General</code>中点击 <code>Install TAP Device</code>。</p>
<h2 id="9-GeoIP相关问题"><a href="#9-GeoIP相关问题" class="headerlink" title="9. GeoIP相关问题"></a>9. GeoIP相关问题</h2><p>若遇到首页和log中有类似于下边这样的提示：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">time=&quot;2020-01-08T03:23:08Z&quot;</span> <span class="string">level=fatal</span> </span><br><span class="line"><span class="string">msg=&quot;Can&#x27;t</span> <span class="attr">load mmdb: error opening database:</span> <span class="string">invalid</span> <span class="string">MaxMind</span> <span class="string">DB</span> <span class="string">file&quot;</span></span><br></pre></td></tr></table></figure>

<p>则说明 country.mmdb 文件有问题，请下载正常的 country.mmdb 文件，然后移动到 <code>.config\clash</code> 文件夹进行替换。</p>
<p>如果找不到该文件夹，可以在 CFW 首页点击 <code>Open Folder</code> 直达。</p>
<p>点击右边按钮下载country.mmdb 文件（下载后请自行解压）</p>
<h2 id="10-常见的订阅错误报告"><a href="#10-常见的订阅错误报告" class="headerlink" title="10. 常见的订阅错误报告"></a>10. 常见的订阅错误报告</h2><p>① 如果遇到以下提示：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">Invalid Config:yaml:</span></span><br><span class="line"><span class="string">unmarshal</span> <span class="string">errors:line</span> <span class="number">1</span><span class="string">:cannot</span> <span class="string">unmarshal</span> <span class="type">!!str</span> <span class="string">c3M6Ly9...</span></span><br></pre></td></tr></table></figure>

<p>说明用错了订阅链接，请检查自己是不是复制错了或者多了空格之类的。</p>
<p>没有 Clash 订阅链接的可以使用<a target="_blank" rel="noopener" href="https://bianyuan.xyz/">订阅转换API</a>来转换订阅链接。</p>
<p>② 如果遇到此类提示：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">Invalid Config:</span></span><br><span class="line"><span class="string">Value</span> <span class="string">for</span> <span class="string">&#x27;Proxy&#x27;</span> <span class="string">is</span> <span class="string">invalid:Unexpected</span> <span class="literal">null</span> <span class="string">or</span> <span class="string">empty</span></span><br></pre></td></tr></table></figure>

<p>说明你还没买套餐，或者订阅为空。请联系你所在机场的管理员。</p>
<p>③ 如果遇到此提示：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">...cipher</span> <span class="string">not</span> <span class="string">supported</span></span><br></pre></td></tr></table></figure>

<p>说明你使用的加密算法不被Clash支持。请更换加密算法。推荐：<code>ChaCha20-ietf-poly1305</code></p>
<h2 id="11-Clash-家族"><a href="#11-Clash-家族" class="headerlink" title="11. Clash 家族"></a>11. Clash 家族</h2><p>每一款都好用！吹爆!</p>
<ul>
<li><p>Clash for Windows <a target="_blank" rel="noopener" href="https://www.v2rayfree.eu.org/post/clash-for-windows-tutorial/">https://www.v2rayfree.eu.org/post/clash-for-windows-tutorial/</a></p>
</li>
<li><p>Clash for Android ：<a target="_blank" rel="noopener" href="https://www.v2rayfree.eu.org/post/clash-for-android-tutorial/">https://www.v2rayfree.eu.org/post/clash-for-android-tutorial/</a></p>
</li>
<li><p>ClashX (Mac) ：<a target="_blank" rel="noopener" href="https://www.v2rayfree.eu.org/post/clash-for-mac-tutorial/">https://www.v2rayfree.eu.org/post/clash-for-mac-tutorial/</a></p>
</li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://hmuseab.github.io">HMuSeaB</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://hmuseab.github.io/2023/04/29/clash/">https://hmuseab.github.io/2023/04/29/clash/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://hmuseab.github.io" target="_blank">HMuSeaB の 小站</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E7%9F%A5%E8%AF%86/">知识</a></div><div class="post_share"><div class="social-share" data-image="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1.1.3/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1.1.3/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/04/30/%E5%85%8D%E8%B4%B9%E9%83%A8%E7%BD%B2%20Alist%20%E7%9B%AE%E5%BD%95%E5%88%97%E8%A1%A8%E7%A8%8B%E5%BA%8F/" title="免费部署 Alist 目录列表程序"><img class="cover" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">免费部署 Alist 目录列表程序</div></div></a></div><div class="next-post pull-right"><a href="/2023/04/28/PyCharm%20%E7%9C%9F%E6%B0%B8%E4%B9%85%E6%BF%80%E6%B4%BB%E6%96%B9%E6%B3%95%E4%B8%8E%E6%8F%92%E4%BB%B6%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/" title="PyCharm 真永久激活方法与插件使用教程"><img class="cover" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">PyCharm 真永久激活方法与插件使用教程</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/2023/04/15/API/" title="API基本概念"><img class="cover" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2023-04-15</div><div class="title">API基本概念</div></div></a></div><div><a href="/2023/04/30/%E5%85%8D%E8%B4%B9%E9%83%A8%E7%BD%B2%20Alist%20%E7%9B%AE%E5%BD%95%E5%88%97%E8%A1%A8%E7%A8%8B%E5%BA%8F/" title="免费部署 Alist 目录列表程序"><img class="cover" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2023-04-30</div><div class="title">免费部署 Alist 目录列表程序</div></div></a></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://i0.hippopx.com/photos/121/457/241/girls-the-scenery-wallpaper-7f97112750013868bc5bcc249f13e27d.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">HMuSeaB</div><div class="author-info__description">MuSea的blog，欢迎访问</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">14</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">6</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/HMuSeaB" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:huangsibo948@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-%E7%AE%80%E4%BB%8B"><span class="toc-number">1.</span> <span class="toc-text">1. 简介</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-%E6%95%B4%E7%90%86%E6%95%99%E7%A8%8B%E6%97%B6%E7%9A%84%E7%B3%BB%E7%BB%9F%E7%8E%AF%E5%A2%83"><span class="toc-number">2.</span> <span class="toc-text">2. 整理教程时的系统环境</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-%E4%B8%8B%E8%BD%BD%E5%92%8C%E5%AE%89%E8%A3%85-Clash-for-Windows"><span class="toc-number">3.</span> <span class="toc-text">3. 下载和安装 Clash for Windows</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#4-%E5%A6%82%E4%BD%95%E6%B1%89%E5%8C%96-Clash-for-Windows%EF%BC%9F"><span class="toc-number">4.</span> <span class="toc-text">4. 如何汉化 Clash for Windows？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#5-%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AE-Clash-for-Windows"><span class="toc-number">5.</span> <span class="toc-text">5. 快速配置 Clash for Windows</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#6-%E5%90%AF%E5%8A%A8-Clash-for-Windows"><span class="toc-number">6.</span> <span class="toc-text">6. 启动 Clash for Windows</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%9C%AC%E5%9C%B0%E6%8B%96%E6%8B%BDYAML%E6%96%87%E4%BB%B6"><span class="toc-number">6.0.1.</span> <span class="toc-text">本地拖拽YAML文件</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#7-%E5%85%B6%E5%AE%83%E7%9F%A5%E8%AF%86"><span class="toc-number">7.</span> <span class="toc-text">7. 其它知识</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#7-1-Clash-for-Windows-%E7%95%8C%E9%9D%A2%E7%AE%80%E4%BB%8B"><span class="toc-number">7.1.</span> <span class="toc-text">7.1 Clash for Windows 界面简介</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-2-UWP-%E5%BA%94%E7%94%A8"><span class="toc-number">7.2.</span> <span class="toc-text">7.2 UWP 应用</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-3-%E6%9B%B4%E6%96%B0-GeoIP-%E6%95%B0%E6%8D%AE%E5%BA%93"><span class="toc-number">7.3.</span> <span class="toc-text">7.3 更新 GeoIP 数据库</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-4-TAP-%E8%AE%BE%E5%A4%87"><span class="toc-number">7.4.</span> <span class="toc-text">7.4 TAP 设备</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#7-4-1-%E4%BB%8B%E7%BB%8D"><span class="toc-number">7.4.1.</span> <span class="toc-text">7.4.1 介绍</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#7-4-2-CFW0-9-0%E5%8F%8A%E4%BB%A5%E5%90%8E%E7%89%88%E6%9C%AC"><span class="toc-number">7.4.2.</span> <span class="toc-text">7.4.2 CFW0.9.0及以后版本</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%AE%89%E8%A3%85TAP%E7%BD%91%E5%8D%A1"><span class="toc-number">7.4.2.1.</span> <span class="toc-text">安装TAP网卡</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%90%AF%E5%8A%A8TAP%E6%A8%A1%E5%BC%8F"><span class="toc-number">7.4.2.2.</span> <span class="toc-text">启动TAP模式</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86"><span class="toc-number">7.4.2.3.</span> <span class="toc-text">工作原理</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#7-4-3-CFW0-8-11%E5%8F%8A%E4%BB%A5%E5%89%8D%E7%89%88%E6%9C%AC"><span class="toc-number">7.4.3.</span> <span class="toc-text">7.4.3 CFW0.8.11及以前版本</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%AE%89%E8%A3%85TAP%E7%BD%91%E5%8D%A1-1"><span class="toc-number">7.4.3.1.</span> <span class="toc-text">安装TAP网卡</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%90%AF%E5%8A%A8TAP%E6%A8%A1%E5%BC%8F-1"><span class="toc-number">7.4.3.2.</span> <span class="toc-text">启动TAP模式</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86-1"><span class="toc-number">7.4.3.3.</span> <span class="toc-text">工作原理</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#7-4-4-CFW0-9-6%E7%89%88%E6%9C%AC"><span class="toc-number">7.4.4.</span> <span class="toc-text">7.4.4 CFW0.9.6版本</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-5-URL-Scheme"><span class="toc-number">7.5.</span> <span class="toc-text">7.5 URL Scheme</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-6-%E4%BE%BF%E6%90%BA%E6%A8%A1%E5%BC%8F"><span class="toc-number">7.6.</span> <span class="toc-text">7.6 便携模式</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8-%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98"><span class="toc-number">8.</span> <span class="toc-text">8. 常见问题</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#8-1-%E7%95%8C%E9%9D%A2%E6%98%BE%E7%A4%BA%E4%B8%8D%E5%85%A8%EF%BC%8C%E6%97%A0%E6%B3%95%E6%93%8D%E4%BD%9C"><span class="toc-number">8.1.</span> <span class="toc-text">8.1 界面显示不全，无法操作</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-2-%E5%8D%87%E7%BA%A7%E5%90%8E%E6%8F%90%E7%A4%BA-xxx-not-found"><span class="toc-number">8.2.</span> <span class="toc-text">8.2 升级后提示 xxx not found</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-3-%E7%B3%BB%E7%BB%9F%E4%BB%A3%E7%90%86%E8%87%AA%E5%8A%A8%E5%85%B3%E9%97%AD%E6%88%96%E6%89%93%E5%BC%80"><span class="toc-number">8.3.</span> <span class="toc-text">8.3 系统代理自动关闭或打开</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-4-%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AE%E7%BD%91%E9%A1%B5"><span class="toc-number">8.4.</span> <span class="toc-text">8.4 无法访问网页</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-5-TAP-%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85"><span class="toc-number">8.5.</span> <span class="toc-text">8.5 TAP 无法安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-6-%E5%AE%89%E8%A3%850-7-4-%E4%B9%8B%E5%90%8E%E7%89%88%E6%9C%AC%E9%A6%96%E6%AC%A1%E4%BD%BF%E7%94%A8%E6%97%B6%E4%B8%8D%E6%98%BE%E7%A4%BA%E6%8E%A5%E5%85%A5%E7%82%B9"><span class="toc-number">8.6.</span> <span class="toc-text">8.6 安装0.7.4 之后版本首次使用时不显示接入点</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-7-%E6%9B%BF%E6%8D%A2%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%90%8E%E4%B8%8D%E6%98%BE%E7%A4%BA%E6%8E%A5%E5%85%A5%E7%82%B9"><span class="toc-number">8.7.</span> <span class="toc-text">8.7 替换配置文件后不显示接入点</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-8-%E7%B3%BB%E7%BB%9F%E4%BB%A3%E7%90%86%E5%BC%82%E5%B8%B8%E5%85%B3%E9%97%AD"><span class="toc-number">8.8.</span> <span class="toc-text">8.8 系统代理异常关闭</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-9-TAP%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C"><span class="toc-number">8.9.</span> <span class="toc-text">8.9 TAP无法正常工作</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#9-GeoIP%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98"><span class="toc-number">9.</span> <span class="toc-text">9. GeoIP相关问题</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#10-%E5%B8%B8%E8%A7%81%E7%9A%84%E8%AE%A2%E9%98%85%E9%94%99%E8%AF%AF%E6%8A%A5%E5%91%8A"><span class="toc-number">10.</span> <span class="toc-text">10. 常见的订阅错误报告</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#11-Clash-%E5%AE%B6%E6%97%8F"><span class="toc-number">11.</span> <span class="toc-text">11. Clash 家族</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2024/05/18/%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9%E5%8D%A1%E7%89%87%E6%A0%87%E7%AD%BE%E5%A4%96%E6%8C%82/" title="哔哩哔哩卡片标签外挂"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="哔哩哔哩卡片标签外挂"/></a><div class="content"><a class="title" href="/2024/05/18/%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9%E5%8D%A1%E7%89%87%E6%A0%87%E7%AD%BE%E5%A4%96%E6%8C%82/" title="哔哩哔哩卡片标签外挂">哔哩哔哩卡片标签外挂</a><time datetime="2024-05-18T13:53:45.000Z" title="发表于 2024-05-18 21:53:45">2024-05-18</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/04/26/Vim%E7%AE%80%E4%BB%8B/" title="Vim简介"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Vim简介"/></a><div class="content"><a class="title" href="/2024/04/26/Vim%E7%AE%80%E4%BB%8B/" title="Vim简介">Vim简介</a><time datetime="2024-04-26T09:11:41.000Z" title="发表于 2024-04-26 17:11:41">2024-04-26</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/04/30/%E2%80%9C%E9%95%BF%E5%A4%A7%E5%90%8E%E6%89%8D%E5%8F%91%E7%8E%B0%EF%BC%8C%E8%AF%AD%E6%96%87%E8%AF%BE%E6%9C%AC%E9%87%8C%E9%9D%A2%E5%85%A8%E6%98%AF%E5%88%80%EF%BC%81%EF%BC%81%EF%BC%81%E2%80%9D/" title="“长大后才发现，语文课本里面全是刀！！！”"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="“长大后才发现，语文课本里面全是刀！！！”"/></a><div class="content"><a class="title" href="/2023/04/30/%E2%80%9C%E9%95%BF%E5%A4%A7%E5%90%8E%E6%89%8D%E5%8F%91%E7%8E%B0%EF%BC%8C%E8%AF%AD%E6%96%87%E8%AF%BE%E6%9C%AC%E9%87%8C%E9%9D%A2%E5%85%A8%E6%98%AF%E5%88%80%EF%BC%81%EF%BC%81%EF%BC%81%E2%80%9D/" title="“长大后才发现，语文课本里面全是刀！！！”">“长大后才发现，语文课本里面全是刀！！！”</a><time datetime="2023-04-30T08:44:00.000Z" title="发表于 2023-04-30 16:44:00">2023-04-30</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/04/30/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" title="Replit博客【已失效，留帖以纪念】"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Replit博客【已失效，留帖以纪念】"/></a><div class="content"><a class="title" href="/2023/04/30/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" title="Replit博客【已失效，留帖以纪念】">Replit博客【已失效，留帖以纪念】</a><time datetime="2023-04-30T08:44:00.000Z" title="发表于 2023-04-30 16:44:00">2023-04-30</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/04/30/%E2%80%9C%E7%8E%AB%E7%91%B0%E5%A4%AA%E8%B4%B5%E4%BA%86%EF%BC%8C%E2%BD%A4%E9%87%8E%E8%8D%89%E7%BA%AA%E5%BF%B5%E6%88%91%E5%90%A7%EF%BC%8C%E6%BB%A1%E5%9C%B0%E9%83%BD%E6%98%AF%EF%BC%8C%E7%94%9F%E7%94%9F%E4%B8%8D%E6%81%AF%E2%80%9D/" title="“玫瑰太贵了，⽤野草纪念我吧，满地都是，生生不息”"><img src="https://jsd.012700.xyz/gh/jerryc127/CDN@latest/cover/default_bg.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="“玫瑰太贵了，⽤野草纪念我吧，满地都是，生生不息”"/></a><div class="content"><a class="title" href="/2023/04/30/%E2%80%9C%E7%8E%AB%E7%91%B0%E5%A4%AA%E8%B4%B5%E4%BA%86%EF%BC%8C%E2%BD%A4%E9%87%8E%E8%8D%89%E7%BA%AA%E5%BF%B5%E6%88%91%E5%90%A7%EF%BC%8C%E6%BB%A1%E5%9C%B0%E9%83%BD%E6%98%AF%EF%BC%8C%E7%94%9F%E7%94%9F%E4%B8%8D%E6%81%AF%E2%80%9D/" title="“玫瑰太贵了，⽤野草纪念我吧，满地都是，生生不息”">“玫瑰太贵了，⽤野草纪念我吧，满地都是，生生不息”</a><time datetime="2023-04-30T08:30:00.000Z" title="发表于 2023-04-30 16:30:00">2023-04-30</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2024 By HMuSeaB</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><div><a>很高兴认识你!</div></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js?v=4.13.0"></script><script src="/js/main.js?v=4.13.0"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0.33/dist/fancybox/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page@5.2.0/instantpage.min.js" type="module"></script><script>function panguFn () {
  if (typeof pangu === 'object') pangu.autoSpacingPage()
  else {
    getScript('https://cdn.jsdelivr.net/npm/pangu@4.0.7/dist/browser/pangu.min.js')
      .then(() => {
        pangu.autoSpacingPage()
      })
  }
}

function panguInit () {
  if (false){
    GLOBAL_CONFIG_SITE.isPost && panguFn()
  } else {
    panguFn()
  }
}

document.addEventListener('DOMContentLoaded', panguInit)</script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js?v=4.13.0"></script></div></div></body></html>